Line data Source code
1 : #pragma once
2 : #include "Direction.hpp"
3 :
4 : class IDriveMotor {
5 : public:
6 39 : IDriveMotor() = default;
7 39 : virtual ~IDriveMotor() = default;
8 : IDriveMotor(const IDriveMotor&) = delete;
9 : IDriveMotor& operator=(const IDriveMotor&) = delete;
10 : IDriveMotor(IDriveMotor&&) = delete;
11 : IDriveMotor& operator=(IDriveMotor&&) = delete;
12 : virtual void moveForward() = 0;
13 : virtual void moveBackward() = 0;
14 : virtual void stop() = 0;
15 : virtual void turn(Direction direction) = 0;
16 : virtual void rotateRight() = 0;
17 : virtual void rotateLeft() = 0;
18 : };
|